# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libinputsynth
pkgver=0.15.0
pkgrel=0
pkgdesc="Synthesize keyboard and mouse input on X11 and Wayland with various backends"
url="https://gitlab.freedesktop.org/xrdesktop/xrdesktop"
arch="all"
license="MIT"
depends_dev="
	gobject-introspection-dev
	xdotool-dev
	"
makedepends="$depends_dev
	gtk-doc
	meson
	"
source="https://gitlab.freedesktop.org/xrdesktop/libinputsynth/-/archive/$pkgver/libinputsynth-$pkgver.tar.gz"
subpackages="$pkgname-dev"

build() {
	abuild-meson \
		-Dapi_doc=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output --no-suite post-install
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="bd4054b05a297f28678bd066f2a7eb62bce0b39ffe0e3bbe6d0ce1323f80b4290ee951c8f9c1006ca77f3ad15282ed6e2c4a960f590487b066202c5738398e24  libinputsynth-0.15.0.tar.gz"
